package com.qf.controller;

import com.qf.ex.MyException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class testController {
    @GetMapping("/echo")
    public String echo(){
        if(1==1){
            throw new MyException("自定");
        }
        return "success";
    }
}
